PKGS = OIS OGRE libswscale x264
CFLAGS = -g -D__STDC_CONSTANT_MACROS
CXXFLAGS = $(CFLAGS) `pkg-config --cflags $(PKGS)`
LDFLAGS = -lz `pkg-config --libs $(PKGS)`
ALL = ITutorial01
COMMON = bin/StreamListener.o bin/BaseApplication.o

$(ALL): % : bin/%.o $(COMMON)
	$(CXX) -o $@ $^ $(LDFLAGS)

bin/%.o: %.cpp %.h
	$(CXX) -c $< -o $@ $(CXXFLAGS) $(CFLAGS)

clean:
	rm -f $(ALL) bin/*.o *~
